﻿using UnityEngine;
using System.Collections;

public class music_scripts : MonoBehaviour {
	public AudioClip music1;
	public AudioClip music2;
	public AudioSource music_source;
	// Use this for initialization
	void Start () {
		music_source = transform.GetComponent<AudioSource> ();
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	public void onMusic1Play(){
		music_source.clip = music1;
		music_source.Play ();
	}
	public void onMusic2Play(){
		music_source.clip = music2;
		music_source.Play ();
	}
}
